Class Renderer

Summary

Fully Qualified Name: Laminas\Mvc\Console\View\Renderer
Implements: RendererInterface, TreeRendererInterface

Description

Render console view models.

Methods

Name Description Defined By
__construct() Constructor. Renderer
canRenderTrees() Renderer
getEngine() Return the template engine object. Renderer
getFilterChain() Retrieve filter chain for post-filtering script content. Renderer
render() Recursively processes all ViewModels and returns output. Renderer
setFilterChain() Set filter chain o use for post-filtering script content. Renderer
setResolver() Set the script resolver. Renderer

Method Details

__construct()

Constructor.

Parameter Name Type Description
$config array Configuration
$filterChain

Returns:

canRenderTrees()

Returns: bool

getEngine()

Return the template engine object.

Returns the object instance, as it is its own template engine.

Returns: self

getFilterChain()

Retrieve filter chain for post-filtering script content.

Returns: null|\FilterChain

render()

Recursively processes all ViewModels and returns output.

Parameter Name Type Description
$model string|\ModelInterface A
$values null|array|\Traversable Values

Returns: string Console output.

setFilterChain()

Set filter chain o use for post-filtering script content.

Parameter Name Type Description
$filters \FilterChain

Returns:

setResolver()

Set the script resolver.

No-op. Required by RendererInterface.

Parameter Name Type Description
$resolver \ResolverInterface

Returns: void

Top